import request from '@/utils/request'

// 查询部装预排产计划列表
export function listAssemblyPreSchedulingPlan(query) {
  return request({
    url: '/sales/assemblyPreSchedulingPlan/list',
    method: 'get',
    params: query
  })
}

// 查询部装预排产计划详细
export function getAssemblyPreSchedulingPlan(id) {
  return request({
    url: '/sales/assemblyPreSchedulingPlan/' + id,
    method: 'get'
  })
}

// 新增部装预排产计划
export function addAssemblyPreSchedulingPlan(data) {
  return request({
    url: '/sales/assemblyPreSchedulingPlan',
    method: 'post',
    data: data
  })
}

// 修改部装预排产计划
export function updateAssemblyPreSchedulingPlan(data) {
  return request({
    url: '/sales/assemblyPreSchedulingPlan',
    method: 'put',
    data: data
  })
}

// 删除部装预排产计划
export function delAssemblyPreSchedulingPlan(id) {
  return request({
    url: '/sales/assemblyPreSchedulingPlan/' + id,
    method: 'delete'
  })
}
export function formalProduction(id) {
  return request({
    url: '/sales/assemblyPreSchedulingPlan/formalProduction/' + id,
    method: 'get'
  })
}
